import service from '@/utils/request'

export const getCardListAPI = (params) => service.get('/parking/card/list', { params })

export const addCardAPi = (data) => service.post('parking/card', data)

export const delCardAPI = (ids) => service.delete(`parking/card/${ids}`)

export const delCardListAPI = (ids) => service.delete(`parking/card/${ids.join(',')}`)

export const updateCardAPI = (data) => service.put('parking/card/edit', data)

export const getCardDetailAPI = (id) => service.get(`parking/card/${id}`)

export const getRuleListAPI = (params) => service.get('parking/rule/list', { params })
